﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections.ObjectModel;

using Microsoft.Windows.Controls.Ribbon;

namespace ScoreMS.ViewModels
{
    public class MainViewModel : ViewModelBase
    {
        public MainViewModel()
        {
            //this.FeedPosts = new ObservableCollection<FeedPost>();
        }

        Model.Teacher teacher;
        public Model.Teacher Teacher
        {
            get
            {
                return teacher;
            }
            set
            {
                if (value != teacher)
                {
                    teacher = value;
                    NotifyPropertyChanged("Teacher");
                }
            }
        }
    }
}


//以后都改成 private set; 然后让ViewModel自己跟Model交互，即具备获取数据的能力。
//public ObservableCollection<FeedPost> FeedPosts { get; set; }